package core;

import java.util.Vector;

import core.gamemodes.FreeForAll;
import core.gamemodes.Tutorial;

public class GameOptions {
	
	//public enum GameMode {FREE_FOR_ALL, TEAMS, SURVIVAL};
	//public static GameMode gameMode = GameMode.FREE_FOR_ALL;
	protected static Vector<core.gamemodes.GameMode> availableGameModes = new Vector<core.gamemodes.GameMode>();
	public static core.gamemodes.GameMode selectedGameMode;
	
	/** True = game will cancel graphics to ensure the game runs at correct speed.
	 * False = Huge stress will slow the game down instead of freezing it */
	public static boolean ensureGameSpeed = false;
	
	public static String errorString = "No errors";
	
	public static String mapFolder = "maps/";
	public static String mapName = "map.txt";
	public static boolean useRecommendedMap = true;
	
	public static String modFolder = "data/mods/";
	public static String modName = "standard/";
	
	public static String imageFolder = "images/";
	public static String spriteFolder = "sprites/";
	
	public static int expectedMaxPlayers = 16;
	public static boolean allowConfig = false;
	
	public static boolean allowHandicap = false;
	
	public static int startGold = 100;
	
	public static Vector<core.gamemodes.GameMode> getAvailableGameModes(){
		/*if(SingleButtonGame.getInstance() != null){
			if(availableGameModes.isEmpty()){
				availableGameModes.add(new FreeForAll(SingleButtonGame.getInstance()));
		    	availableGameModes.add(new Tutorial(SingleButtonGame.getInstance()));
		    	selectedGameMode = GameOptions.availableGameModes.firstElement();
			}
			return availableGameModes;
		}
		return null;*/
		return availableGameModes;
	}

}
